package com.guigu.qingcheng.service;

import com.guigu.qingcheng.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 远程引用AdService的feign接口
 */
@Component
@FeignClient("service-business")
public interface AdServiceFeign {

    @GetMapping("/business/ad/findByPosition")
    public R findByPosition(@RequestParam String position);

}
